import type { FormSchema } from '@/components/core/schema-form/';

export const baseSchemas: FormSchema<API.PostEntity>[] = [
  {
    field: 'name',
    component: 'Input',
    label: '岗位名称',
    rules: [{ required: true, type: 'string' }],
  },
  {
    field: 'code',
    component: 'Input',
    label: '岗位编码',
    rules: [{ required: true, type: 'string' }],
  },
  {
    field: 'orderNo',
    label: '排序',
    component: 'InputNumber',
    required: true,
    componentProps: {
      style: { width: '100%' },
    },
  },
];
